﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Criterion;
using SimpleServiceBus.Persistence.Domain.Management.Entities;

namespace SimpleServiceBus.Persistence.NHibernate.Repositories
{
    public class EndpointMetricTypeRepository : Repository<EndpointMetricType>
    {
        public EndpointMetricType GetByName(string metricTypeName)
        {
            return FindOne(Expression.Eq("Name", metricTypeName));
            
        }
    }
}
